package com.wjh.kt_user.controller.api;

import com.wjh.kt_user.service.UserInfoService;
import com.wjh.kt_vod.model.user.UserInfo;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Wang_Junhong
 * 2022/7/20
 * 文件描述：
 */

@RestController
@RequestMapping("/api/user/userInfo")
public class UserApiController {

    @Autowired
    private UserInfoService userInfoService;

    @ApiOperation("获取用户")
    @GetMapping("/inner/getById/{id}")
    public UserInfo inner(@ApiParam(name = "id",value = "用户id",required = true) @PathVariable("id") Long id){
        UserInfo byId = userInfoService.getById(id);
        return byId;
    }

}
